<include file="Public:header"/>
<style>
input{padding:6px;}
.title{background:#E2E8EB;width:180px;text-align:right;}
</style>
<table border="0" width="700px" align="center" cellspacing="3" cellpadding="3">
	<tr>
		<td class="title">商城名称：</td>
		<td><input type="text" name="web_name" size="20" value="{$web_name}"></td>
	</tr>
	<tr>
		<td class="title">列表页商品显示数：</td>
		<td><input type="text" name="list_size" size="20" value="{$list_size}"></td>
	</tr>
	<tr>
		<td class="title">商品评论每页显示数：</td>
		<td><input type="text" name="comment_size" size="20" value="{$comment_size}"></td>
	</tr>
	<tr>
		<td class="title">Cookie有效期：</td>
		<td><input type="text" name="cookie_time" size="20" value="{$cookie_time}"></td>
	</tr>
	<tr>
		<td class="title">网站备案号：</td>
		<td><input type="text" name="icp" size="20" value="{$icp}"></td>
	</tr>
	<tr>
		<td class="title">客服QQ：</td>
		<td><input type="text" name="qq" size="20" value="{$qq}"></td>
	</tr>
	<tr>
		<td class="title">客服热线：</td>
		<td><input type="text" name="tel" size="20" value="{$tel}"></td>
	</tr>
</table>


<div id="save"><input type="button" id="change" value="保存修改" style="padding:2px"></div>

<script>
$("#change").click(function(){
   var name=$("[name=web_name]").val();
   var list_size=$("[name=list_size]").val();
   var comment_size=$("[name=comment_size]").val();
   var cookie_time=$("[name=cookie_time]").val();
   var icp=$("[name=icp]").val();
   var qq=$("[name=qq]").val();
   var tel=$("[name=tel]").val();
   
   $.ajax({
        type:"POST",
		url:"__URL__/systems_save",
		dataType:"json",
		data:{"name":name,"list_size":list_size,"comment_size":comment_size,"cookie_time":cookie_time,"icp":icp,"qq":qq,"tel":tel},
		success:function(data){
		    jSuccess("<strong>修改成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){location.reload();}})
       }
   })
})


</script>